import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import goods from 'components/goods/goods';
import ratings from 'components/ratings/ratings';
import sellers from 'components/seller/sellers';
import 'common/stylus/index.styl';
Vue.use(VueRouter);
Vue.use(VueResource);
/* eslint-disable no-new */
let app=Vue.extend(App);
let router=new VueRouter({
  linkActiveClass:'active'
});
router.map({
  '/goods':{
    component:goods,
  },
  '/sellers':{
    component:sellers,
  },
  '/ratings':{
    component:ratings,
  }
});
router.start(app,"#app");
router.go('/goods');
